colors
fun colors(thumbColor: Color = WavySliderTokens.HandleColor.toColor(), activeTrackColor: Color = WavySliderTokens.ActiveTrackColor.toColor(), inactiveTrackColor: Color = WavySliderTokens.InactiveTrackColor.toColor(), disabledThumbColor: Color = WavySliderTokens.DisabledHandleColor
.toColor()
.copy(alpha = WavySliderTokens.DisabledHandleOpacity)
.compositeOver(MaterialTheme.colorScheme.surface), disabledActiveTrackColor: Color = WavySliderTokens.DisabledActiveTrackColor
.toColor()
.copy(alpha = WavySliderTokens.DisabledActiveTrackOpacity), disabledInactiveTrackColor: Color = WavySliderTokens.DisabledInactiveTrackColor
.toColor()
.copy(alpha = WavySliderTokens.DisabledInactiveTrackOpacity)): WavySliderColors
Creates a WavySliderColors that represents the different colors used in parts of the WavySlider in different states.
For the name references below the words "active" and "inactive" are used. Active part of the WavySlider is filled with progress, so if slider's progress is 30% out of 100%, left (or right in RTL) 30% of the track will be active, while the rest is inactive.
Parameters
thumb Color
thumb color when enabled
active Track Color
color of the track in the part that is "active", meaning that the thumb is ahead of it
inactive Track Color
color of the track in the part that is "inactive", meaning that the thumb is before it
disabled Thumb Color
thumb colors when disabled
disabled Active Track Color
color of the track in the "active" part when the WavySlider is disabled
disabled Inactive Track Color
color of the track in the "inactive" part when the Slider is disabled